﻿@using Stamp_For_Africa_Version_2.Helpers
@using Stamp_For_Africa_Version_2.Models
@model Stamp_For_Africa_Version_2.ViewModels.ManageStampViewModel

@{
    ViewBag.Title = "ManageStampVariants";
}

<script type="text/javascript">

	$(function () {
		$(".navbutton1").button({

		});
	});
</script>

<h2>Manage Stamp Variants</h2>

<fieldset>

	
	<h2>Known variations</h2>
	@{
		List<Stamp> variationList = Model.GetStampVariations;
		foreach (var stamp in variationList)
		{
			<div>
				<div class="navbutton1">
					@Html.ActionLink(@stamp.DisplayName, "Details", new {id = stamp.Id})
				</div>
				<div class="navbutton1">				
					@Html.ActionLink("Delete this variation", "DeleteStampVariationLink", new { parentId = Model.Stamp.Id, childId = stamp.Id })
				</div>	 
			</div>
		}
	}
	

</fieldset>


<p>
	<div class="navbutton1">	  
		@Html.ActionLink("Back to List", "Index")
		</div>
</p>
